<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>AOS傲雄在线--驾校Portal</title>
    <link rel="stylesheet" href="layui/css/layui.css"/>
    <link rel="stylesheet" href="static/css/style.css"/>
    <link rel="stylesheet" href="static/css/menuIcon.css" />
    <script type="text/javascript" src="static/js/jquery.min.js"></script>
    <script type="text/javascript" src="static/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="static/js/json2.js"></script>
    <script type="text/javascript" src="layui/layui.js"></script>
    <script src="static/js/base.js" charset="utf-8"></script>
    <script src="static/js/ax.js" charset="utf-8"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="static/js/html5.js"></script>
    <script src="static/js/respond.js"></script>
    <![endif]-->
</head>
<body>

<!--菜单-->
<div class="layui-side layui-bg-black nav layui-list">
    <a href="#" class="logo"><img src="static/images/logo.png"/></a>
    <div class="layui-side-scroll">
        <ul class="layui-nav layui-nav-tree layui-bg-b layui-inline" lay-filter="demo" id="nav">
            <li class="layui-nav-item layui-nav-itemed">
                <a class="nli" href="javascript:;"><i class="layui-icon"><img src="static/images/nav_icon1.png"/></i>
                    <cite>系统管理</cite> <span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                    <dd><a target="pageiframe" href="school/sys/user.html">用户管理</a></dd>
                    <dd><a target="pageiframe" href="javascript:;">角色管理-N</a></dd>
                    <dd><a target="pageiframe" href="school/sys/department.html">部门管理</a></dd>
                    <dd><a target="pageiframe" href="school/school/branch.html">分校管理</a></dd>
                    <dd><a target="pageiframe" href="school/school/registers.html">报名点管理</a></dd>
                    <dd><a target="pageiframe" href="school/message/messageTempleList.html">消息模板</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a class="nli" href="javascript:;"><i class="layui-icon"><img src="static/images/nav_icon2.png"/></i>
                    <cite>考试管理</cite> <span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child"> 
                    <dd><a target="pageiframe" href="school/message/messageRecordList.html">消息推送查询</a></dd>
                    <dd><a target="pageiframe" href="./school/student/examK1List.html">科目一</a></dd>
                    <dd><a target="pageiframe" href="./school/student/examK2List.html">科目二</a></dd>
                    <dd><a target="pageiframe" href="./school/student/examK3List.html">科目三</a></dd>
                    <dd><a target="pageiframe" href="./school/student/examK4List.html">科目四</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a class="nli" target="pageiframe" href="school/student/studentList.html" ><i class="layui-icon"><img src="static/images/nav_icon3.png"/></i>
                    <cite>学员管理</cite> </a>
            </li>
            <li class="layui-nav-item">
                <a class="nli" target="pageiframe" href="./school/school/coach.html" ><i class="layui-icon"><img src="static/images/nav_icon4.png"/></i>
                    <cite>教练管理</cite> </a>
            </li>
            <li class="layui-nav-item">
                <a class="nli" target="pageiframe" href="./school/cgs/car.html"><i class="layui-icon"><img src="static/images/nav_icon5.png"/></i>
                    <cite>车辆管理</cite> </a>
            </li>
            <li class="layui-nav-item">
                <a class="nli" target="pageiframe" href="./school/school/class/list.html"><i class="layui-icon"><img src="static/images/nav_icon6.png"/></i>
                    <cite>班型管理</cite> </a>
            </li>
            <li class="layui-nav-item">
                <a class="nli" href="#"><i class="layui-icon"><img src="static/images/nav_icon7.png"/></i>
                    <cite>统计管理-N</cite> <span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                    <dd><a target="pageiframe" href="Statistics.html">合格率统计</a></dd>
                </dl>
            </li>
          <!--  <li class="layui-nav-item">
                <a href="javascript:;" ><i class="layui-icon"><img src="static/images/nav_icon7.png"/></i> <cite>驾校管理</cite> <span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                    <dd><a href="school/cgs/driveschool.html" target="pageiframe">驾校管理</a></dd>
                </dl>
            </li>-->

        </ul>
    </div>
    <ul class="layui-nav nav_bottom nav">
        <li><a href="./school/sys/password.html"><img src="static/images/xg.png"/><cite>修改密码</cite></a></li>
        <li><a href="javascript:outlogin()"><img src="static/images/tc.png"/><cite>退出当前账号</cite></a></li>
    </ul>
</div>
<!--菜单-->

<!--header-->
<div class="layui-header">

    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left bg-color head_pt">
        <li class="layui-nav-item">
            <a href="javascript:;">
                <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg"
                     class="layui-nav-img">
                <span id="username"></span>，您好</a>
        </li>
        <span class="layui-nav-bar" style="left: 76px; top: 55px; width: 0px; opacity: 0;"></span></ul>
    <div class="title"><h5>&nbsp;<!--重庆市峰华驾校渝北报名点--></h5></div>
    <ul class="bg-color layui-layout-right ax_topicon">
        <li class="layui-nav-item"><a href=""></a></li>
        <li class="layui-nav-item"><a href=""></a></li>
    </ul>

    <!--当前位置-->
    <div class="position">
        <div class="layui-row">
            <p class="layui-col-xs6 positionlist">
                <span class="layui-breadcrumb" lay-separator=">"><a><cite class="t">您当前的位置</cite></a><a href="">首页</a></span>
            </p>
            <p class="layui-col-xs6"  id="currentTimeTick"></p>
        </div>
    </div>
    <!--当前位置-->

</div>
<!--header-->

<!--移动端-->

<div class="site-tree-mobile layui-hide slide-btn">
    <i class="layui-icon"></i>
</div>
<div class="site-mobile-shade bg"></div>
<!--移动端-->

<!-- 主体内容 -->
<div class="layui-body" id="LAY_app_body">
    <div class="layadmin-tabsbody-item layui-show">
        <iframe src="cgs.html" frameborder="0" name="pageiframe" class="layadmin-iframe"></iframe>
    </div>
</div>

<script src="layui/layui.all.js" charset="utf-8"></script>
<script>


    function autoForwardLoginPage(){
        window.location.href="/login.html?a=1";
    }

    loginFilter();


    layui.config({
        base: './static/js/'
    }).extend({
        navbar: 'navbar'
    });



    //导航
    layui.use(['navbar','timetick'], function(navbar,timetick){
        timetick.set({elem:"#currentTimeTick"}).render();
    });


    $('.layui-side-scroll').css('height', $(window).height() - $('.logo').innerHeight() - $('.nav_bottom').innerHeight() - 20);
    $('.layui-body').css('top',$('.layui-header').innerHeight()+15);
    $(window).resize(function () {
        $('.layui-side-scroll').css('height', $(window).height() - $('.logo').innerHeight() - $('.nav_bottom').innerHeight() - 20);
        $('.layui-body').css('top',$('.layui-header').innerHeight()+15);
    });
    $('.slide-btn').click(function () {
        $('body').addClass('site-mobile');
        $(this).hide();
    });
    $('.bg').click(function () {
        $('body').removeClass('site-mobile');
    })
     $('#nav>li>a').click(function () {
         var that=$(this);
         if($(this).attr('href')!='javascript:;'){
             var str='<span class="layui-breadcrumb" lay-separator=">" style="visibility: visible;"><a><cite class="t">您当前的位置</cite></a><span lay-separator="">&gt;</span><a href="">首页</a><span lay-separator="">&gt;</span><a><cite>'+that.find('cite').text()+'</cite></a></span>';


             $('.positionlist').html(str)
         }
     })
    $('#nav>li>dl dd a').click(function () {

        var thats=$(this);
        if($(this).attr('href')!='javascript:;'){
            var strs='<span class="layui-breadcrumb" lay-separator=">" style="visibility: visible;"><a><cite class="t">您当前的位置</cite></a><span lay-separator="">&gt;</span><a href="">首页</a><span lay-separator="">&gt;</span><a href="javascript:;">'+thats.parents('.layui-nav-item').find('.nli').find('cite').text()+'</a><span lay-separator="">&gt;</span><a><cite>'+thats.text()+'</cite></a></span>';


            $('.positionlist').html(strs)
        }
    })

    //导航
    layui.use('element', function () {
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function (elem) {
            //console.log(elem)
            // layer.msg(elem.text());
        });
    });
    $(function () {
        $("#username").html(getCookie("username"));
    });
    function outlogin(){
        ax.post({
            url:  backendWebUrl+"/user/logout",
            contentType: "application/x-www-form-urlencoded",
            data: {token: getCookie("tokens")},//用户登录token
            success: function (res) {
                if (res.code == 0) {
                    clearCookie('token');
                    clearCookie('tokens');
                    clearCookie('username');
                    window.location.replace("login.html");
                } else {
                    layer.msg(res.message);
                }
            }
        });
    }

    var layer;
    layui.use(['layer'], function(){
        layer=layui.layer;
    });
</script>

</body>
</html>